package com.rongxun.hbwallet.mvp.contract;

import com.rongxun.base.IBase;

import java.math.BigDecimal;
import java.math.BigInteger;

/**
 * 创建者     庄丰泽
 * 创建时间   2018/8/20 13:47
 * 描述	      转账充值
 */

public interface ITransfer {
    interface IView extends IBase.IView {
        void showEthBalance(BigInteger ethBalance);

        void showCityBalance(BigInteger cityBalance);

        void showTransferResult(String txHash);

        void showRechargeResult(String txHash);

        void showGasPrice(BigInteger gasPrice);

        void showGasLimit(BigInteger gasLimit);

        void showTransferInfo();
    }

    interface IPresenter extends IBase.IPresenter {
        void getEthBalance(String fromAddress);

        void getCityBalance(String fromAddress);

        void getGasPrice();

        void getGasLimit(String fromAddress);

        void transfer(String password, String fromAddress, String toAddress, BigInteger amount, BigInteger gasLimit, BigInteger gasPrice);

        void recharge(String password, String fromAddress, String toAddress, BigDecimal amount, BigInteger gasLimit, BigInteger gasPrice);

        void checkTransferInfo(String address, String transfer, BigInteger balance);
    }

    interface IModel extends IBase.IModel {

    }
}
